package top.zhangjianyong.tools.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.zhangjianyong.tools.entity.marirui.JJ;
import top.zhangjianyong.tools.mapper.JJMapper;
import top.zhangjianyong.tools.service.mybatis.IJJService;

import java.util.List;

/**
 * @author ： zhangjianyong
 * @date ： 2022/10/13 8:49 AM
 */
@Service
public class IJJServiceImpl extends ServiceImpl<JJMapper, JJ> implements IJJService {

    @Override
    public JJ qryOneByDm(String dm) {
        return lambdaQuery().eq(JJ::getDm, dm).one();
    }

    @Override
    public List<JJ> listNotGzLimit(Integer num) {
        return baseMapper.listNotGzLimit(num);
    }
}
